package com.guomao;

public class JavaDemo15 {


    public static void main(String[] args) {

        int a = 200;
        System.out.println("main:start" + a);//200
        changeInt(a);
        System.out.println("main:end" + a);//200
    }

    //值传递
    ////基本类型当做参数传递 形参的改变不会影响实参
    public static void changeInt(int x) {

        System.out.println("change start:" + x);//200
        x += 100;
        System.out.println("change end:" + x);//300
    }
}
